dir /b *.jpg >directories.txt